package com.tancire.member.domain;

import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员排行榜对象 member_train_chart
 *
 * @author tancire
 * @date 2024-10-23
 */
public class MemberTrainChart extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 所属会员
     */
    @Excel(name = "所属会员")
    private Long memberId;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String memberName;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String memberAvatar;

    /**
     * 排名
     */
    @Excel(name = "排名")
    private Integer chartLevel;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Long delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberAvatar(String memberAvatar) {
        this.memberAvatar = memberAvatar;
    }

    public String getMemberAvatar() {
        return memberAvatar;
    }

    public void setChartLevel(Integer chartLevel) {
        this.chartLevel = chartLevel;
    }

    public Integer getChartLevel() {
        return chartLevel;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("memberId", getMemberId())
                .append("memberName", getMemberName())
                .append("memberAvatar", getMemberAvatar())
                .append("chartLevel", getChartLevel())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
